package tec;




class PassagerStresse 
    extends PassagerAbstrait{
    
 
    
    public PassagerStresse(String nom, int destination){
	super(nom, destination);
    }
    
    
    public void choixChangerPlace(Bus b, int arret) {
	if(distance2Dest(arret) <= 3)
	    b.demanderChangerEnDebout(this);
	
    }
    
    public void choixPlaceMontee(Bus b) { 
	if(b.aPlaceAssise())
	    b.demanderPlaceAssise(this);
    }
    

    
}

